/*
 * Copyright (c)  2015~2020, xforceplus
 * All rights reserved.
 * Project:datacare-orm
 * Id: KeyHolder.java   2020-09-28 22-00-15
 * Author: Evan
 */
package cn.datacare.orm.database;

/**
 * <p>
 * Title: 主键
 * </p>
 * <p>
 * Description: 主键
 * </p>
 * <p>
 * Copyright: 2015~2020
 * </p>
 * <p>
 * Company/Department: xforceplus
 * </p>
 *
 * @author Evan
 * <b>Creation Time:</b> 2020-09-28 22-00-15
 * @since V1.0
 */
public class KeyHolder {
    /***
     * Object
     */
    private Object key;

    public void setKey(Object key) {
        this.key = key;
    }

    public Object getKey() {
        return key;
    }

    public int getInt(){
        return  ((Number)key).intValue();
    }

    public long getLong(){
        return  ((Number)key).longValue();
    }
}
